<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.itheima.pojo.User" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Yoyo-ba
  Date: 2021/10/31
  Time: 15:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>展示用户列表页面</title>
</head>
<body>
   <table border="1px" cellpadding="0" cellspacing="0" align="center">
       <tr>
           <td>用户id</td>
           <td>用户名</td>
           <td>email</td>
           <td>姓名</td>
           <td>性别</td>
       </tr>

    <c:forEach items="${list}" var="user">
        <tr>
            <td>${user.uid}</td>
            <td>${user.username}</td>
            <td>${user.email}</td>
            <td>${user.name}</td>
            <td>${user.sex}</td>
        </tr>
    </c:forEach>



   </table>
</body>
</html>
